import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
      user:{
          name:'',
          photo:''
      }
    },
    mutations: {
      increment (state,users) {
        state.user.name = users.name,
        state.user.photo = users.photo
      }
    }
  })

  export default store